# Begin: Custom commands for User Creation log(1,'Begin: Custom commands for User Creation'); if (!authenticated()) { if (ldap_compare('192.168.10.10;CN=Peter Mueller,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=Firma,DC=local;mypassword;OU=SBSUsers,OU=Users,OU=MyBusiness,DC=Firma,DC=local;(mail=$from)','memberOF','SecureMail')) { log(1,'$header_from is member of SecureMail, creating user, generating keys'); createaccount(); createkeys('@CREATEGPGKEYS@'); } else { log(1,'$header_from is not member of SecureMail, bouncing e-mail'); bounce('bounce_noenc'); } } else { createkeys('@CREATEGPGKEYS@'); } log(1,'End: Custom commands for User Creation'); # End: Custom commands for User Creation